@model enqueteJwVd.ViewModels.CheckBoxOptionIndexViewModel

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            ContentNaam
        </th>
        <th>
            CheckboxOptionId
        </th>
        <th>
            QuestionType
        </th>
    </tr>

@foreach (var item in Model.CheckBoxOptions) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@item.ContentNaam
        </td>
        <td>
			@item.CheckboxOptionId
        </td>
        <td>
			@(item.QuestionType == null ? "None" : item.QuestionType.Count.ToString())
        </td>
    </tr>
}

</table>


